<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<#assign article = articles[0]>
<#if article.exturl??>
<script type="text/javascript">window.location.replace("${article.exturl}");</script>
<#else>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>
<title>${article.title}-${columns.name}-${web.title}</title>
<link href="/template/default/css/main.css" type="text/css" rel="stylesheet" media="screen and (min-width: 800px)" >
<link href="/template/default/css/main_m.css" type="text/css" rel="stylesheet" media="screen and (max-width: 800px)" >
<link href="/template/default/css/article.css" type="text/css" rel="stylesheet">
<link href="/resource/css/grayscale.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/grayscale.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
<script type="text/javascript" src="/template/default/js/main.js"></script>
<script type="text/javascript" src="/template/default/js/article.js"></script>
</head>
<body>
	<div class="panel">
		<#include "top.html">
		<div class="middle">
			<div class="middleLeft">
				<div class="leftTitle">${columns.name}</div>
                    <center>
						<h1 class="articleTitle">${article.title}</h1>
						 来源：${article.source} &nbsp;&nbsp;作者：${article.author} &nbsp;&nbsp;发布时间${article.publishtime?string('yyyy-MM-dd')} &nbsp;&nbsp;点击数：<span id="clicknum">loading...</span>
                    </center>
                    <#if !article.protection>
	                	<#if article.digest??><div class="articleAbstract"><b>摘要：</b>${article.digest}</div><#else><hr class="dashedstyle" /></#if>
	                    <div class="articleContents">${getPageContents(article.contents!)}</div>
	                <#else>
	               		<hr class="dashedstyle" id="protectionhr" />
	               		<div class="protectionpanel">
	                		<table>
	                			<tr>
	                				<td rowspan="4"><img src="/template/default/image/lock.gif" /></td>
									<td colspan="2" align="center"><h3>此文档内容已加密</h3></td>
	                			</tr>
			                	<tr>
			                    	<td align="right">密　码：</td>
			                        <td align="left"><input type="password" id="protectionpassword" onkeydown="keydownevent()" /> <span style="color:red">*</span></td>
			                    </tr>
			                	<tr>
			                    	<td align="right">验证码：</td>
			                        <td align="left"><input type="text" id="vcode" maxlength="4"  onkeydown="keydownevent()" /> <img id="vcodeimg" class="vcodeimg" src="/validatecode?width=68&height=27" onclick="changevocde()" /> <span style="color:red">*</span></td>
			                    </tr>
			                    <tr>
			                    	<td colspan="2" align="center"><input type="button" value="查看正文" onclick="passcontents()" /></td>
			                    </tr>
			                </table>
		                </div>
                    </#if>
				<br class="clear" />
			</div>
			<div class="middleRight">
			<#include "right.html">
			</div>
			<div class="clear"></div>
		</div>
		<#include "bottom.html">
	</div>
</body>
<script type="text/javascript">
articledetailid = ${article.id};
</script>
</html>
</#if>
